package com.stylefeng.guns.rest.modular.App.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("driver_refuse_task")
 /**
 * 驾驶员拒单登记信息
 *
 * @author sasazaixian
 * @Date 2018-11-16 11:33
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class DriverRefuseTask extends Model<DriverRefuseTask> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "drt_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String drtId;     //主键
    @Override
    protected Serializable pkVal() {
        return this.drtId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;
	
    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}	
	


    @ApiModelProperty(value = "驾驶员ID")
    @TableField("di_id")
    private String diId;     //驾驶员ID

    @ApiModelProperty(value = "任务单ID")
    @TableField("ti_id")
    private String tiId;     //任务单ID

    @ApiModelProperty(value = "")
    @TableField("drt_reason")
    private String drtReason;     //

    @ApiModelProperty(value = "读表示 0 未读 1 已读")
    @TableField("drt_read_flg")
    private String drtReadFlg;     //读表示 0 未读 1 已读

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;     //更新时间

    @ApiModelProperty(value = "更新人")
    @TableField("update_user")
    private String updateUser;     //更新人
}
